package com.hfut.jpoa.dao;

import com.hfut.jpoa.common.dto.ResultDto;
import com.hfut.jpoa.common.exception.DaoException;
import com.hfut.jpoa.dto.WorkSystemDTO;
import com.hfut.jpoa.model.WorkSystem;

public interface WorkSystemDAO
{
	int deleteByPrimaryKey(Long id) throws DaoException;

	void insert(WorkSystem record) throws DaoException;

	void insertSelective(WorkSystem record) throws DaoException;

	WorkSystem selectByPrimaryKey(Long id) throws DaoException;

	int updateByPrimaryKeySelective(WorkSystem record) throws DaoException;

	int updateByPrimaryKey(WorkSystem record) throws DaoException;

	/**
	 * 分页列表查询
	 * 
	 * @param condition
	 * @return
	 * @throws DaoException
	 */
	ResultDto<WorkSystem> findInfoForPage(WorkSystemDTO condition);

}